<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	 <script>
	 var b=[31,65,78,9,1542,321];
	 var new1=[];
	 for (var i in b){
	 	var c=b[i];
	 	var d=String(c);
	 	new1.push(d.length);
	 	document.write(new1[i]);
	 	document.write(" ");
	 }
	 
	 </script>
	</body>
</html>
